
package com.hunteron.jdbc.dao;

import java.util.ArrayList;
import java.util.List;

import com.hunteron.jdbc.bean.DicKeyword;

public class DicKeywordDao extends AbstractDao<DicKeyword> {

	public DicKeywordDao() {
		super(5000);
	}

	public DicKeywordDao(int pertime) {
		super(pertime);
	}

	public long countAll() {
		return 0;
	}

	public List<DicKeyword> getList(int first, int max) {
		return new ArrayList<DicKeyword>(0);
	}

	@Override
	public long maxTime(long minTime) {

		return 0;
	}

	@Override
	public int insert(List<DicKeyword> list) {
		return 0;
	}

	public static void main(String[] args) {
		DicKeywordDao dicDao = new DicKeywordDao(1000);

		while (dicDao.hasNext()) {
			List<DicKeyword> list = dicDao.more();
			if (list != null) {
				for(DicKeyword k : list) {
					System.out.println(k.getKeyword() + " : " + k.getIsDic());
				}
			} else {
				System.out.println("no data.");
			}
		}

		// DicKeyword k = new DicKeyword("大猎上1");
		// k.setDicType(2);
		// k.setAddTime(System.currentTimeMillis());
		// k.setLastUpdate(new Date());
		//
		// List<DicKeyword> list = new ArrayList<DicKeyword>();
		// list.add(k);
		// dicDao.insert(list);
	}
}
